export const state = () => {
  // 后台拉过来后会更新掉
  return {
    author: 'Yaavi', // 作者
    avatar: 'https://qn.yaavi.me/_me/image/avatar.jpg', // 头像 img url
    introduce: 'JS Stack Developer. 92+, Libra. Live in Suzhou.', // 个人简介
    slogan: '好好学习', // 签名
    navs: [
      {
          "name" : "首页",
          "enName" : "Index", // 英文名
          "route" : "/",
          "icon" : "",
          "exact" : true // 路由绝对匹配
      }
    ], // 导航
    links: [
      {
        "title" : "知乎",
        "icon" : "#icon-zhihu",
        "link" : "https://www.zhihu.com/people/yaavi"
      }
    ], // 链接
    beian: '苏ICP备14028140号-4' // 备案号
  }
}

export const mutations = {
  SET_CONFIG (state, action) {
    for (const o in action) {
      state[o] = action[o]
    }
  }
}